# Ddxv1Ds类测试类
import unittest
from apps.dhlp.ddxv1_ds import Ddxv1Ds

class TDdxv1Ds(unittest.TestCase):
    # python -m unittest -v uts.apps.dhlp.t_ddxv1_ds.TDdxv1Ds.test_len
    def test_len(self):
        ds = Ddxv1Ds()
        print(f'数据集数量: {len(ds)};')

    # python -m unittest -v uts.apps.dhlp.t_ddxv1_ds.TDdxv1Ds.test_getitem
    def test_getitem(self):
        idx = 3
        ds = Ddxv1Ds()
        X, y = ds[idx]
        print(f'第3个元素: {X.shape}; {y}; {type(y)}')